   var map = null;
	
  function initialize() 
  {
  
    var latlng = new google.maps.LatLng(-6.190, 106.89);
    var myOptions = {
      zoom: 12,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    
	 map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);
		
	 var marker1 = new google.maps.Marker({
		  position: new google.maps.LatLng(-6.19, 106.88999999999999), 
		  map: map, 
		  animation: google.maps.Animation.DROP,
	  });   		
	  
	 var marker2 = new google.maps.Marker({
		  position: new google.maps.LatLng(-6.1999835481669, 106.91920389175417), 
		  map: map,
		  animation: google.maps.Animation.DROP
	  });   		
	
 /*		
  google.maps.event.addListener(marker1, 'click', function() {
    map.setZoom(8);
  });
  */	
  
  google.maps.event.addListener(map, 'click', function() {
    showClick();
  });
  
	var contentString1 = "<B>Rujak Kamboja Rawamangun</B><br>"+
	                    "Jalan Paus No. 5<br>"+
						"Dari Arah terminal Senen Naik Metromini no. 47 Turun di Arion Plaza<br>"+
						"<br>"+
						"<b>Wahyu</b> : Bener - Bener Ajiib, kalo di bandung udah jadi oleh - oleh nih!"
						;
	
	var infowindow1 = new google.maps.InfoWindow({
    content: contentString1
	});  

	var contentString2 = "<B>Sate Pak Masduki</B><br>"+
	                    "Jalan Paus No. 5<br>"+
						""
						;
	var infowindow2 = new google.maps.InfoWindow({
    content: contentString2
	});  
	
	google.maps.event.addListener(marker1, 'click', function() {
	  infowindow1.open(map,marker1);
	});

	google.maps.event.addListener(marker2, 'click', function() {
	  infowindow2.open(map,marker2);
	});
	
	//infowindow1.open(map,marker1);
	//infowindow2.open(map,marker2);
  
  }

  function showClick(){
	console.log("test");
	var center = map.getCenter();	
	console.log(center);
	console.log(center.toString());
  }
  
  var pathJalan = null;
  
  function showLine()
  {
	  //make sure just once
	  if(pathJalan==null)
	  {
		  var flightPlanCoordinates = [
			new google.maps.LatLng(-6.1999835481669, 106.9192045),
			new google.maps.LatLng(-6.19, 106.88999999999999),
			new google.maps.LatLng(-6.19328520549400, 106.88999999999999),
			new google.maps.LatLng(-6.193285205495787, 106.87967885971071),
			new google.maps.LatLng(-6.1999835481669, 106.91920389175417)
		  ];
		  
		  pathJalan = new google.maps.Polyline({
			path: flightPlanCoordinates,
			strokeColor: "#FF0000",
			strokeOpacity: 1.0,
			strokeWeight: 2
		  });
	  }
	  
	  pathJalan.setMap(map);
  }

  function hideLine(){
	pathJalan.setMap(null);
  }  
  
  function clearLine(){
	console.log(pathJalan);
	hideLine();
	pathJalan = null;
  }

  
 $(function() {
	$('#tabs-plain').tabs({
	});
	
	$("#tabs-history").tabs();
	$("#device-dialog").dialog({
		width:"300",
		resizable:false,
		title:"Device"
	});
}); 